﻿//PlazaSysEventsColumns.cs
//Copyright (c) 2013 StockSharp LLC, all rights reserved.
//This code module is part of StockSharp library.
//This code is licensed under the GNU GENERAL PUBLIC LICENSE Version 3.
//See the file License.txt for the license details.
//More info on: http://stocksharp.com

namespace StockSharp.Plaza.Metadata
{
	/// <summary>
	/// Таблица sys_events: Таблица событий.
	/// </summary>
	public class PlazaSysEventsColumns : PlazaColumns
	{
		internal PlazaSysEventsColumns()
			: base(PlazaTableSystemName.SysEvents)
		{
			EventId = new PlazaColumn(TableId, "msg_id", typeof(long));
			SessionId = new PlazaColumn(TableId, "moment", typeof(long));
			EventType = new PlazaColumn(TableId, "event_type", typeof(int));
			Message = new PlazaColumn(TableId, "message", "c64");
		}

		/// <summary>
		/// Уникальный идентификатор события.
		/// </summary>
		public readonly PlazaColumn EventId;

		/// <summary>
		/// Номер сессии.
		/// </summary>
		public readonly PlazaColumn SessionId;

		/// <summary>
		/// Тип события.
		/// </summary>
		public readonly PlazaColumn EventType;

		/// <summary>
		/// Описание события.
		/// </summary>
		public readonly PlazaColumn Message;
	}
}